package com.dgw.springbootmail.controller;

import com.dgw.springbootmail.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springboot-sendmail
 * @description:
 * @author: Mr.Dai
 * @create: 2020-02-29 21:12
 **/
@RestController
public class UserController {


    /*@Transactional(isolation = Isolation.DEFAULT)
    @Transactional(isolation = Isolation.READ_UNCOMMITTED)
    @Transactional(isolation = Isolation.READ_COMMITTED)
    @Transactional(isolation = Isolation.REPEATABLE_READ)
    @Transactional(isolation = Isolation.SERIALIZABLE)*/
    @GetMapping("test")
    public String test(){
        User user = new User().builder().setId(2L).setUsername("dgw").setPassword("dgw").builder();
        return user.toString();
    }
}
